---
--- Created by admin.
--- DateTime: 2017/10/4 17:23
---
require("utils.loggerUtils")
require("utils.StringUtils")
require("util")




ShuYuan={}

ShuYuan.yiWanCheng=function ()

    x, y = findMultiColorInRegionFuzzy(0x6aff83,"7|-3|0x6aff83,4|7|0x5edc71,51|-2|0x6aff83,45|-2|0x6aff83,48|4|0x66f47d,53|4|0x6aff83,47|-5|0x150d08,39|3|0x17100b,4|3|0x150e09,-11|0|0x160d0a,6|12|0x150e09,2|-8|0x160e0a,18|-3|0x16100c,40|-3|0x19110c,68|8|0x160f0c", 95, 9, 121, 711, 1270, 0, 0)
    if x > -1 then
        shouzhi.click(x, y)
        logger.info("学习完成")
        return true
    end
end


ShuYuan.paiQianXueXi=function()

    x, y = findMultiColorInRegionFuzzy(0xd5ccb8,"-67|-30|0xc8c1af,-69|-3|0xcfc7b5,-46|-5|0xd3cbb8,9|-17|0xd4cbb8,-1|-23|0xd3cab7,-16|-7|0xd4cbb8,92|14|0x817a80,40|-7|0xd4cbba,59|-7|0xd9ceba,93|-19|0xd9cfb9,88|-28|0xd8ceb9,78|-19|0xd7ceb8,-1|-3|0xd6cdb9,89|36|0x040203,65|18|0x7d777c,92|15|0x807a80", 95, 9, 121, 711, 1270, 0, 0)
    if x > -1 then
        shouzhi.click(x, y)
        logger.info("派遣学习")
        return true
    end
end

ShuYuan.paiQian=function ()
    x, y = findMultiColorInRegionFuzzy(0xbc9c7a,"96|-6|0xc0a07e,5|-15|0xcbaf8d,-4|18|0xa17956,95|19|0xa17956,-12|-83|0x2d241c,60|-81|0x2d241c,127|-82|0x2e241d,165|-9|0x2e251d,85|88|0x2d241c,-3|92|0x2d241c,21|54|0x43352a,87|55|0x43352a", 95, 441, 291, 663, 1085, 0, 0)
    if x > -1 then
        shouzhi.click(x, y)
        logger.info("派遣成功")
        return true
    end
end

ShuYuan.Ui=function()

    x, y = findMultiColorInRegionFuzzy(0x971600,"27|-3|0x931902,53|-4|0x921903,-49|-10|0x5e5045,-66|1|0x2d1e1b,-227|10|0x2d1e1b,-288|8|0x2d1e1b,-57|62|0xe88541,-57|89|0xc56528,15|51|0x382715,-12|58|0x525646,-48|68|0x61656e,-31|67|0x362720", 95, 256, 5, 719, 228, 0, 0)
    if x > -1 then
        logger.info("书院界面")
        return true
    end
end

ShuYuan.UiClose=function()

    x, y = findMultiColorInRegionFuzzy(0x971600,"27|-3|0x931902,53|-4|0x921903,-49|-10|0x5e5045,-66|1|0x2d1e1b,-227|10|0x2d1e1b,-288|8|0x2d1e1b,-57|62|0xe88541,-57|89|0xc56528,15|51|0x382715,-12|58|0x525646,-48|68|0x61656e,-31|67|0x362720", 95, 256, 5, 719, 228, 0, 0)
    if x > -1 then
        shouzhi.click(x, y)
        logger.info("书院界面关闭")
        return true
    end
end